package com.geek.javase.ch18.videodemo.reflect.field;

/*
 *@Date 2025/11/5
 *@Author wangpeng
 *@Description TODO
 */
public class Employee {
    private String name;
    private double salary;
    public static int count = 0;

    public Employee() {
    }

    public Employee(String name, double salary, int count) {
        this.name = name;
        this.salary = salary;
        this.count = count;
    }

    /**
     * 获取
     * @return count
     */
    public static int getCount() {
        return count;
    }

    /**
     * 设置
     * @param count
     */
    public static void setCount(int count) {
        Employee.count = count;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return salary
     */
    public double getSalary() {
        return salary;
    }

    /**
     * 设置
     * @param salary
     */
    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String toString() {
        return "Employee{name = " + name + ", salary = " + salary + ", count = " + count + "}";
    }
}
